<% @page_title = @revision.page.name -%>
<% unless @page_title == 'Home' -%>
<h3 style="display:inline;"><%= @revision.page.name %></h3> 
<% end -%>
<span class="actions">
	<% if user_can?('publish') && !@revision.published? -%>
		<span class="publish"><%= link_to("publish", :action => "publish", :id => @revision.page.slug) %></span>
	<% elsif user_can?('publish') -%>
		<span class="delete"><%= link_to("un-publish", :action => "un_publish", :id => @revision.id) %></span>
	<% end -%>
	<% if user_can?('modify') -%>
		<span class="edit"><%= link_to("edit", :action => "edit", :id => @revision.page.slug) %></span>
		<span class="revisions"><%= link_to("show revisions", :action => "revisions", :id => @revision.page.slug) %></span>
	<% end -%>
	<% if user_can?('remove') -%>
		<span class="delete"><%= link_to("remove revision", :action => "remove", :id => @revision.page.slug) %></span>
	<% end -%>
</span>
<%= render :partial => 'content' %>